import http from "@/util/http";

// export const materialRule = (params: any) =>
//   http.request({
//     url: `/design/materialRule/delete/478277f6a73c42be9fe01a890d9587c0`,
//     method: "post",
//     data: params,
//   });

//规则查询接口
export const materialRuleList = (params: any) =>
  http.request({
    url: `/xg/materialRule/list`,
    method: "post",
    data: params,
  });

//规则查询接口
export const materialRuleInfo = (params: any) =>
  http.request({
    url: `/xg/materialRule/info`,
    method: "post",
    data: params,
  });

//新增接口
export const materialRuleAdd = (params: any) =>
  http.request({
    url: `xg/materialRule/add`,
    method: "post",
    data: params,
  });

//规则更新接口
export const materialRuleUpdata = (params: any) =>
  http.request({
    url: `/xg/materialRule/update`,
    method: "post",
    data: params,
  });

//规则删除接口
export const materialRuleDelete = (params: any) =>
  http.request({
    url: `/xg/materialRule/delete/${params.uid}`,
    method: "get",
    data: params,
  });

//规则导出接口
export const materialRuleExport = (params: any) =>
  http.request({
    url: `/xg/materialRule/export`,
    method: "post",
    data: params,
  });

//规则导入接口
export const materialRuleImport = (params: any) =>
  http.request({
    url: `/xg/materialRule/import`,
    method: "post",
    data: params,
  });

//基础单值字段下拉值
export const basicsLov = (params: any) =>
  http.request({
    url: `/xg/lov/basics`,
    method: "get",
    data: params,
  });

//分类下拉树接口
export const classifyLov = (params: any) =>
  http.request({
    url: `/xg/lov/classify`,
    method: "get",
    data: params,
  });

export const attributePoolLov = (params: any) =>
  http.request({
    url: `/xg/lov/attributePool`,
    method: "get",
    data: params,
  });
